<%
    var path = request["contextPath"];
    var basePath = request["scheme"] + "://" + request["serverName"] + ":" + request["serverPort"]+ path + "/";
    var menuList = session["menuList"];
    var currentMenu = session["currentMenus"];
%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="description" content="">
  <meta name="author" content="">
  <link rel="shortcut icon" href="${basePath}images/favicon.png" type="image/png">
  <title>Base Manage WorkFlow</title>
  <link href="${basePath}css/style.default.css" rel="stylesheet">
  <!--[if lt IE 9]>
  <script src="js/html5shiv.js"></script>
  <script src="js/respond.min.js"></script>
  <![endif]-->
</head>
<body>
<!-- Preloader -->
<div id="preloader">
    <div id="status"><i class="fa fa-spinner fa-spin"></i></div>
</div>
<section>
  <div class="leftpanel">
    <div class="logopanel">
        <h1><span>[</span> ${session["loginedUser"].userName } <span>]</span></h1>
    </div><!-- logopanel -->
    <div class="leftpanelinner">
      <ul class="nav nav-pills nav-stacked nav-bracket">
        <li><a href="index.html"><i class="fa fa-home"></i> <span>首页</span></a></li>
      </ul>
    </div><!-- leftpanelinner -->
  </div><!-- leftpanel -->
  <div class="mainpanel">
    <div class="headerbar">
      <a class="menutoggle"><i class="fa fa-bars"></i></a>
      <form class="searchform" action="index.html" method="post">
        <input type="text" class="form-control" name="keyword" placeholder="全文搜索" />
      </form>
      <div class="header-right">
        <ul class="headermenu">
          <li>
            <div class="btn-group">
              <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                <img src="${basePath}images/photos/loggeduser.png" alt="" />
                ${session["loginedUser"].userName }
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                <li><a href="profile.html"><i class="glyphicon glyphicon-user"></i> 个人主页</a></li>
                <li><a href="#"><i class="glyphicon glyphicon-cog"></i> 账号设置</a></li>
                <li><a href="#"><i class="glyphicon glyphicon-question-sign"></i> 帮助</a></li>
                <li><a href="./logout"><i class="glyphicon glyphicon-log-out"></i> 退出系统</a></li>
              </ul>
            </div>
          </li>
          <li>
            <button id="chatview" class="btn btn-default tp-icon chat-icon">
                <i class="glyphicon glyphicon-comment"></i>
            </button>
          </li>
        </ul>
      </div><!-- header-right -->
    </div><!-- headerbar -->
    <div class="pageheader">
      <h2><i class="fa fa-home"></i>${currentMenu.menuName}<span></span></h2>
      <div class="breadcrumb-wrapper">
        <span class="label">当前位置:</span>
        <ol class="breadcrumb">
          <li><a href="${basePath}query?menuId=-1">首页</a></li>
          <li class="active">${currentMenu.menuName!}</li>
        </ol>
      </div>
    </div>
    <div class="contentpanel">
      ${layoutContent}
    </div><!-- contentpanel -->
  </div><!-- mainpanel -->
</section>


<script src="${basePath}js/jquery-1.11.1.min.js"></script>
<script src="${basePath}js/jquery-migrate-1.2.1.min.js"></script>
<script src="${basePath}js/jquery-ui-1.10.3.min.js"></script>
<script src="${basePath}js/bootstrap.min.js"></script>
<script src="${basePath}js/modernizr.min.js"></script>
<script src="${basePath}js/jquery.sparkline.min.js"></script>
<script src="${basePath}js/toggles.min.js"></script>
<script src="${basePath}js/retina.min.js"></script>
<script src="${basePath}js/jquery.cookies.js"></script>

<script src="${basePath}js/flot/jquery.flot.min.js"></script>
<script src="${basePath}js/flot/jquery.flot.resize.min.js"></script>
<script src="${basePath}js/flot/jquery.flot.spline.min.js"></script>
<script src="${basePath}js/morris.min.js"></script>
<script src="${basePath}js/raphael-2.1.0.min.js"></script>

<script src="${basePath}js/custom.js"></script>

</body>
</html>
